]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
UnlockDialog: clear the password on failure
authorGiovanni Campagna <gcampagna@src.gnome.org>
Mon, 29 Oct 2012 16:43:28 +0000 (17:43 +0100)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Mon, 29 Oct 2012 16:54:12 +0000 (17:54 +0100)
It is wrong, and the user can't correct it because it's obfuscated.
Just let him type it again.

https://bugzilla.gnome.org/show_bug.cgi?id=687132

js/ui/unlockDialog.js

index b119783c1047013ad66a4b659c30ed944e686e51..a902563f5e85cfa095d008d9b3df7d31a2f079b4 100644 (file)
@@ -282,6 +282,7 @@ const UnlockDialog = new Lang.Class({
         this._currentQuery = null;
         this._firstQuestion = true;
 
+        this._promptEntry.text = '';
         this._promptEntry.clutter_text.set_password_char('\u25cf');
         this._promptEntry.menu.isPassword = true;